package cn.hjh.dao.role;

import cn.hjh.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    public int add(Role role);

    public int up(Role role);

    public int del(@Param("id") Integer roleId);

    public int getUserCountByRoleId(@Param("userRole") Integer roleId);

    public List<Role> getjdt(@Param("roleName") String roleName, @Param("beginIndex") Integer beginIndex, @Param("pageSize") Integer pageSize);


    public List<Role> getroleName(String roleName);

    public int update(Role role);
}